package com.breezelin.freshmarket.network.asynctasks;

/**
 * Created by Breeze Lin
 * 6:29 2016/5/30
 * 1linyufeng1@gmail.com
 */

import com.breezelin.freshmarket.entities.rsp.QueryRsp;
import com.breezelin.freshmarket.network.FMAsyncTask;
import com.breezelin.freshmarket.network.apis.ContentApi;

/**
 * 获取相关产品的异步任务
 */
public abstract class AboutQueryTask extends FMAsyncTask<Void, Void, QueryRsp> {

	/**
	 * 商品的id
	 */
	private String id;
	/**
	 * 商品类型
	 */
	private String type;

	protected AboutQueryTask(String id, String type) {
		super(ContentApi.GET_RELATE_PRODUCT);
		this.id = id;
		this.type = type;
	}

	@Override
	protected QueryRsp doInBackground(Void... params) {
		return ContentApi.getRelatedProduce(id, type);
	}
}
